#Main Image
FROM java:8

MAINTAINER wj 1418203985@qq.com

EXPOSE 10002/tcp

ADD ./target/ruoyi-admin.jar ./app.jar


#设置编码
#ENV LC_ALL zh_CN.UTF-8
ENV TZ=Asia/Shanghai


HEALTHCHECK --interval=5s --timeout=3s --retries=12 CMD curl --silent --fail localhost:10002/public/status || exit 1

ENTRYPOINT ["java", "-jar", "./app.jar"]